<html>

<head>
    <title>jsconfig客户端演示</title>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="js/webconfig.js?v=2"></script>
    <script>

        $(document).ready(function () {

            $("#btn1").click(function () {
                var key = $("#cfgKey").val();
                var result = webcfg.config(key);
                $("#cfgValue").val(result);
            });
            
        });

    </script>
</head>

<body>
    <h2>配置客户端演示</h2>
    <span>
        <input id="cfgKey" type="text" value="services.fileservice.url" size="50" />
    </span>
    <span>=</span>

    <input id="cfgValue" type="text" value="" size="50" />

    <button id="btn1">读取配置</button>
</body>

</html>